

<?php

	/*
	
	if(($_FILES["file"]["size"] < 10485760) &&($_FILES["file"]["type"] == "image/jpeg" || 
												$_FILES["file"]["type"] == "image/gif" ||
												$_FILES["file"]["type"] == "image/pjpeg" ||
												$_FILES["file"]["type"] == "image/png" ))
	{
		
		move_uploaded_file($_FILES["file"]["tmp_name"], "images/Album/" .time()."_". $_FILES["file"]["name"]);
		$image = "images/Album/" .time()."_". $_FILES["file"]["name"];	
	}
	*/
	if ($_FILES["file"]["error"] > 0)
	{
		echo "Error: " . $_FILES["file"]["error"] . "<br>";
	}
	else
	{
		echo "Upload: " . $_FILES["file"]["name"] . "<br>";
		echo "Type: " . $_FILES["file"]["type"] . "<br>";
		echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
		
		move_uploaded_file($_FILES["file"]["tmp_name"], "../images/" .time()."_". $_FILES["file"]["name"]);
		$image = "../images/" .time()."_". $_FILES["file"]["name"];	
		echo "Stored in: " .$image ;
	}
?>